home *** CD-ROM | disk | FTP | other *** search
- /*
- OpalStoryBoard
- By J.L. White
- ⌐1993 Merlin's Software
-
- This Arexx script will allow you to create a Story Board of your
- animation frames. The script will take from 1 to 30 frames and create
- a page with up to 30 mini pics of your animation along with the frame
- numbers. This script was originally created for use with Transporter SFC
- software but has been adapted to run as a script directly in OpalPaint
- through the Arexx function keys. Just set the path in the Arexx control
- panel for this file.
- OpalStoryBoard requires that you pass it the first frame in the series,
- the name to save the Story Board screen and how many files to convert.
- For example, you have 30 frames of an animation called TEST with the
- frames named from TEST001 to TEST030. Enter in TEST001 when it ask for
- the filename. Then it will ask for a name to save the Story Board to,
- which could be something like DH1:AnimStory. Next it will ask you how many
- frames to convert where you would enter 30 for this example. You can select
- the color of the background screen and also the border and text colors.
- I have been busy adding many new OpalVision features to Transporter.
- Version 1.1 allows users of OpalVision to single frame there animations
- to Video with most of the popular SFC cards out there. 1.2 will have alot
- more Opal support through out the program, like frame grabbing, slide shows,
- and Picture In Picture options. If you would like more information on
- Transporter you can contact me at the address below.
-
- Jeff White
- 809 W. Hollywood St.
- Tampa, Fl. 33604
- (813) 977-6511
-
- */
-
- address "OpalPaint_Rexx"
- options Results
-
- call GetInName
- call GetOutName
- call GetTotal
- call Story
- Okay "Arexx Script Is Complete!"
- exit
-
-
- Story:
- do FrameNum = 1+AddNum to TotalFiles+AddNum
- if FrameNum = 1+AddNum then do
- SaveSetUp
- StoryX = 28
- StoryY = 29
- AddPage 640 400 HIRES INTERLACE
- Key "j"
- Okay "Select Background Color Then Click Ok!"
- SolidRect 0 0 640 400
- Okay "Select Border & Text Color Then Click Ok!"
- ActivePot
- TextColor = Result
- Key "j"
- end
- Load InPic""right(FrameNum,3,'0')
- if RC = 10 then do
- Okay "Arexx Script Aborted!"
- exit
- end
- ActiveBrush 1
- PageSize
- Parse var Result Width Height
- RectCut 0 0 Width Height
- RescaleMethod Smooth2
- Resize 83 52
- Key "j"
- ActivePot TextColor
- if FrameNum = 1+AddNum then do
- Text = "Story Board For "OutPic" With Frames #"right(1+AddNum,3,'0')" - #"right(TotalFiles+AddNum,3,'0')
- Len = ((78-(Length(Text)))/2) * 8
- ActiveBrush 2
- MakeText 'topaz 8 2 'Text
- Handle 0 0
- PutBrush Len 10
- end
- SolidRect StoryX-2 StoryY-2 StoryX+83 StoryY+52
- ActiveBrush 1
- ColorSource MULTICOLOR
- Handle 0 0
- PutBrush StoryX StoryY
- ActiveBrush 2
- Handle 0 0
- MakeText 'topaz 8 2 Frame #'right(FrameNum,3,'0')
- PutBrush StoryX+38 StoryY+61
- Key "j"
- StoryX = StoryX + 100
- if FrameNum = 6+AddNum then do
- StoryX = 28
- StoryY = StoryY + 74
- end
- if FrameNum = 12+AddNum then do
- StoryX = 28
- StoryY = StoryY + 74
- end
- if FrameNum = 18+AddNum then do
- StoryX = 28
- StoryY = StoryY + 74
- end
- if FrameNum = 24+AddNum then do
- StoryX = 28
- StoryY = StoryY + 74
- end
- if FrameNum = TotalFiles+AddNum then do
- Key "j"
- Save OutPic
- RestoreSetUp
- end
- end
- return
-
-
-
- GetInName:
- AskFileName "Enter Name Of First Frame" "dh2:pics" ""
- if RC = 5 then do
- Okay "Arexx Script Aborted!"
- exit
- end
- AddNum = right(Result,3)
- Length = wordlength(Result,1)
- InPic = left(Result,Length-3)
- AddNum = AddNum - 1
- return
-
-
-
- GetOutName:
- AskFileName "Enter Name For Saving Frames" "OpalPaint:Images" ""
- if RC = 5 then do
- Okay "Arexx Script Aborted!"
- exit
- end
- OutPic = Result
- return
-
-
-
- GetTotal:
- AskProp 1 30 29 "Enter Total Number Of Frames (1-30)!"
- if RC = 5 then do
- Okay "Arexx Script Aborted!"
- exit
- end
- TotalFiles = Result
- return
-
-